'use strict'
const path = require('path')

function resolve(dir) {
    return path.join(__dirname, dir)
}

const port = process.env.port || process.env.npm_config_port || 9999 // dev port

module.exports = {
    runtimeCompiler: true,
    publicPath: './',
    outputDir: 'dist',
    assetsDir: 'static',
    lintOnSave: false,
    productionSourceMap: false,
    devServer: {
        port: port,
        open: true,
    },
    configureWebpack: {
        name: "",
        resolve: {
            alias: {
                '@': resolve('src'),
                'lib': resolve('lib'),
                'main': resolve('main')
            }
        }
    }
}
